using UnityEngine;

public class DelayPush : MonoBehaviour
{
    public int delayTime = 1;
    //对象激活时触发
    void OnEnable()
    {
        Invoke("Push", delayTime);
    }

    // Update is called once per frame
    void Push()
    {
        PoolMgr.GetInstance().Push(gameObject.name, gameObject);
    }
}
